<template>
    <div class="login-img">
        <div class="login-detail">
            <h2 v-text="$t('module.login.title')"></h2>
            <p class="user-name">
                <input type="text" v-model="userId" :placeholder="$t('module.login.inputUserId')" maxlength="80">
            </p>
            <p class="user-name">
                <input type="text" v-model="password" :placeholder="$t('module.login.inputPassword')" maxlength="80">
            </p>
            <p class="submit-btn" v-text="$t('module.login.login')"></p>
        </div>
    </div>
</template>

<script>
export default {
    name:'login',
    data(){
        return{
            userId:'',
            password:'',
        }
    }
    
}
</script>

<style scoped lang="less">
    .login-img{
        height: 100%;
        width: 100%;
        background:url('../../asset/images/login.png') no-repeat 0 0/cover;
    }
    .login-detail{
        position: absolute;
        width: 480px;
        height: 400px;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        background-color: #fff;
        padding: 60px 110px;
        h2{
            text-align: center;
            font-size: 20px;
            font-weight: 400;
            font-family: 'PingFangSC-Medium';
            padding-bottom: 22px;
        }
        .user-name{
            height: 58px;
            text-align: center;
            border-bottom: 1px solid #eee;
            input{
                margin-top: 33px;
                border: none;
                width: 100%;
                text-align: center;
                outline: none;
                font-size: 14px;
                font-family: "PT Sans", sans-serif;
            }
        }
        .submit-btn{
            height: 34px;
            background-color: #e23928;
            margin-top: 50px;
            text-align: center;
            line-height: 34px;
            color: #fff;
            font-size: 14px;
            font-family: "PT Sans", sans-serif;
            cursor: pointer;
        }
    }
</style>